from pygame import mixer
from ctypes import *
#libad=cdll.LoadLibrary("/home/pi/Documents/Sum.so")
def switch(a):
#    a=libad.sum(a)
    if a == 18:
        mixer.music.load('/home/pi/Bookshelf/count/a1.mp3')
        mixer.music.play()
    if a == 19:
        mixer.music.load('/home/pi/Bookshelf/count/a2.mp3')
        mixer.music.play()
    if a == 20:
        mixer.music.load('/home/pi/Bookshelf/count/a3.mp3')
        mixer.music.play()
    if a == 21:
        mixer.music.load('/home/pi/Bookshelf/count/a4.mp3')
        mixer.music.play()
    if a == 22:
        mixer.music.load('/home/pi/Bookshelf/count/a5.mp3')
        mixer.music.play()
    if a == 23:
        mixer.music.load('/home/pi/Bookshelf/count/a6.mp3')
        mixer.music.play()
    if a == 24:
        mixer.music.load('/home/pi/Bookshelf/count/a7.mp3')
        mixer.music.play()
    if a == 25:
        mixer.music.load('/home/pi/Bookshelf/count/a8.mp3')
        mixer.music.play()
    if a == 26:
        mixer.music.load('/home/pi/Bookshelf/count/a9.mp3')
        mixer.music.play()
    if a == 27:
        mixer.music.load('/home/pi/Bookshelf/count/a10.mp3')
        mixer.music.play()
    if a == 28:
        mixer.music.load('/home/pi/Bookshelf/count/a11.mp3')
        mixer.music.play()
    if a == 29:
        mixer.music.load('/home/pi/Bookshelf/count/a12.mp3')
        mixer.music.play()
    if a == 30:
        mixer.music.load('/home/pi/Bookshelf/count/a13.mp3')
        mixer.music.play()
    if a == 31:
        mixer.music.load('/home/pi/Bookshelf/count/a14.mp3')
        mixer.music.play()
    if a == 32:
        mixer.music.load('/home/pi/Bookshelf/count/a15.mp3')
        mixer.music.play()
    if a >= 33:
        mixer.music.load('/home/pi/Bookshelf/count/ada.mp3')
        mixer.music.play()
    if a <= 17:
        mixer.music.load('/home/pi/Bookshelf/count/axa.mp3')
        mixer.music.play()